From 9b64cdda453768d7c01dd38ed33c1c7c3678ff0a Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 12 Dec 2007 10:04:29 +0000 Subject: [PATCH] tools: Use os.system instead of exec to start xentop. This makes no difference to the visible behaviour of "xm top" but avoids the whole of xm from quitting if you're in "xm shell". This provides the more intuitive behaviour of returning to the xm shell interface after leaving xm top. Signed-off-by: Mark Williamson --- tools/python/xen/xm/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py index 59105a8f86..a736247f2e 100644 --- a/tools/python/xen/xm/main.py +++ b/tools/python/xen/xm/main.py @@ -1833,7 +1833,7 @@ def xm_debug_keys(args): def xm_top(args): arg_check(args, "top", 0) - os.execvp('xentop', ['xentop']) + os.system('xentop') def xm_dmesg(args): arg_check(args, "dmesg", 0, 1) -- 2.30.2